//
//  UtilKit.h
//  DCUtilKit
//
//  Created by zhangtao on 2020/9/16.
//  Copyright © 2020年 zhangtao. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
#import <DCUtilKit/DCUtilMacro.h>
#import <DCUtilKit/DCAvchatNetworkRequest.h>
#import <DCUtilKit/DCWebView.h>
#import <DCUtilKit/NTESYUVConverter.h>
#import <DCUtilKit/NTESI420Frame.h>
#import <DCUtilKit/GCDAsyncSocket.h>
#import <DCUtilKit/NTESSocketPacket.h>
#import <DCUtilKit/NTESTPCircularBuffer.h>
#import <DCUtilKit/libyuv.h>
#import <DCUtilKit/DCError.h>
#import "UIView+Toast.h"
#import <DCUtilKit/Reachability.h>
#import <DCUtilKit/NetworkManager.h>

NS_ASSUME_NONNULL_BEGIN

@interface UtilKit : NSObject

+ (instancetype) sharedKit;

// 获取当前时间戳-毫秒
- (NSString *) getCurrentTimestamp;
//会话流⽔号,⽣成规则: yyyyMMddHHmmss+呼叫⽅账号
- (NSString *) generateSessionJournalId:(NSString *)account;
//字典转换成json字符串
- (NSString *) dictConvertToJsonStr:(NSDictionary*)data;
//json字符串转字典
- (NSDictionary *) jsonStrConvertToDict:(NSString*)str;
//获取window
- (UIWindow *) getKeyWindow;
//获取最上层全屏window
- (UIWindow *) getFullScreenWindow;
//获取当前显示的控制器
- (UIViewController*) getCurrentVC;
//获取bundle图片路径根据屏幕scale
- (NSString*) getBundleImagePath:(NSBundle*)bunle name:(NSString*)name type:(NSString*)type;
//压缩图片大小
- (UIImage *) compressImage:(UIImage *)image toByte:(NSUInteger)maxLength;
//获取url主机名和端口地址
- (NSString *) getUrlHostPortAddress:(NSString*)url;

@end

NS_ASSUME_NONNULL_END
